/**
 * 
 */
package cn.dafa.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.dafa.user.mapper.UserMapper;
import cn.dafa.user.model.User;

/**
 * @author 韩大发
 * @datetime 2012-8-28 下午01:36:42
 * @email:smile-gorget-song@foxmail.com
 * @summary dafa
 */
@Service("userService")
public class UserService {

	@Autowired
	private UserMapper userMapper;

	/**
	 * @param userMapper
	 *            the userMapper to set
	 */
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	/**
	 * @summary 插入一条数据
	 * @param user
	 */
	@Transactional
	public void insert(User user) {
		this.userMapper.insert(user);
	}

}
